import express from 'express';
import controller from './controller';
import {authorizeHandlerNormal, authorizeHandleAdmin} from '../../middlewares/authorize';
// 定义路由，使用鉴权中间件
export default express
  .Router()
  .post('/create', authorizeHandlerNormal ,controller.create)
  .get('/update', authorizeHandleAdmin ,controller.update)
  .get('/list/get', authorizeHandlerNormal ,controller.listGet);